#include <stdafx.h>

#include "T2Entity.h"
#include "Wall.h"
#include "TSquare.h"
#include "MainForm.h"

namespace TSquare {
	MainForm::MainForm(void)
	{
		InitializeComponent();
		//
		//TODO: Add the constructor code here
		//
	}

	MainForm::~MainForm()
	{
		if (components)
		{
			delete components;
		}
	}

	void MainForm::InitializeComponent(void)
	{
		this->SuspendLayout();
		// 
		// MainForm
		// 
		this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
		this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
		this->ClientSize = System::Drawing::Size(292, 273);
		this->Name = L"MainForm";
		this->Text = L"Welcome to T-Square";

		view = gcnew TSquare();
		view->Dock = DockStyle::Fill;

		Controls->Add(view);

		this->ResumeLayout(false);

	}

	void MainForm::OnResize(EventArgs ^e){
		view->SetBounds(0, 0, Width, Height);
	}
}